package com.xqh.javabasic.arrayelement_number_odd_even;
public class ArrayElementNumber_Odd_Even{

	public static void arrayElementNumber_odd_even(){
	
			int [] a = new int [1000];
	
			int x =0;
	
		while(x<1000){
			
			a [x] =x+1;
		//System.out.println(a [x]);	
			x++;
		}
	
			int OddNumber =0;
			int EvenNumber =0;   
			//int status =a[x]%2;
				x=0;
		while(x<1000){                               //     switch(status){
		
			if(x%2==0){                     		//         case0:
			
			 OddNumber= OddNumber +1;				//              OddNumber= OddNumber +1;
			}
		else if(x%2==1){                            //              break;        
			
			EvenNumber = EvenNumber +1;              //        case1:
		}
			
		//System.out.println(OddNumber +" ,"+ EvenNumber);
			x++;                                      //            OddNumber= OddNumber +1;
		}
	
	}                                                   //           break;               
														//}
	public static void main(String [] args){
	
	arrayElementNumber_odd_even();
	}
	
}